#include "timer.hxx"
#include <curses.h>

class TimerTest : public Timer::TimerCallback
{
public:
	virtual void onTimer(Timer::TimerDataPtr timerData) 
	{
		std::cout << "Timer fired!\n";
	}
};

int main() 
{
	TimerTest timerTest;
	TimerPtr timer = TimerPtr(new Timer);
	timer->addTimer(&timerTest, 0, 1000);

	char s[100];
	gets(s);

	return 0;
}
